package com.hqyj.hrms.modules.account.service;

import com.hqyj.hrms.modules.account.entity.Role;

import java.util.HashMap;
import java.util.List;

public interface RoleService {

    List<Role> getRoles();

    List<Role> getRolesByUserId(int userId);

    //新增
    HashMap<String, Object> add(Role role);

    //修改
    HashMap<String, Object> update(Role role);

    //删除
    HashMap<String, Object> del(Integer id);

    //查询
    HashMap<String, Object> list(Role role);

}
